package sandbox.dto;

import java.util.Date;
import javax.annotation.PostConstruct;
import javax.xml.datatype.XMLGregorianCalendar;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

@Service("entityMappingManager")
@Scope("singleton")
public class EntityMappingManager extends MappingManager {

    public EntityMappingManager() {
        registerPrimitiveType(Integer.class);
        registerPrimitiveType(Long.class);
        registerPrimitiveType(Double.class);
        registerPrimitiveType(String.class);
        registerPrimitiveType(Date.class);
        registerPrimitiveType(XMLGregorianCalendar.class);
    }

    @PostConstruct
    public void init() {
        init("sandbox.dto");
    }
}
